﻿using System;

namespace Facebook
{
    public static class TypeExtensions
    {
        public static Boolean IsIntegral(this Type type)
        {
            if (type == typeof(Boolean) ||
                type == typeof(Byte) ||
                type == typeof(Int16) ||
                type == typeof(Int32) ||
                type == typeof(Int64) ||
                type == typeof(UInt16) ||
                type == typeof(UInt32) ||
                type == typeof(UInt64)) return true;
            else return false;                
        }
    }
}